home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / smailsrc.zip / PASSWD.ZIP / PWD.H < prev    next >
Text File  |  1990-04-03  |  1KB  |  35 lines

  1. /*
  2.  *      pwd.h: password function header file
  3.  *
  4.  *      Stephen C. Trier
  5.  *      March 26, 1990
  6.  *
  7.  *      This is the header file for my family of password-file functions
  8.  *      for MS-DOS.  I based these functions on information available in
  9.  *      our library; I do not have access to any restricted source code.
  10.  *      Therefore, these functions are in the public domain.
  11.  *
  12.  *      This implementation of getpwent() and friends should be pretty
  13.  *      much compatible with the BSD implementation.  Some little-used
  14.  *      features may have been omitted, but you've got the source and
  15.  *      you are welcome to add whatever features you need.
  16.  *
  17.  */
  18.  
  19. struct passwd {
  20.     char pw_name[12];
  21.     char pw_passwd[12];
  22.     int pw_uid;
  23.     int pw_gid;
  24.     char pw_gecos[80];
  25.     char pw_dir[80];
  26.     char pw_shell[80];
  27.     } ;
  28.  
  29. struct passwd *getpwent(void);
  30. struct passwd *getpwuid(int id);
  31. struct passwd *getpwnam(char *nam);
  32. int setpwent(void);
  33. int endpwent(void);
  34. int pw_openfile(char *name);  /* Specify a filename to use for password file */
  35.